Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Conversation

@AtomicAlexD
Copy link
Collaborator

@AtomicAlexD AtomicAlexD commented May 29, 2025

This pull request introduces several enhancements to the development environment and minor codebase improvements. The primary focus is on configuring VS Code for debugging, linting, and testing, adding Ruff and Python LSP support, and improving import organization across multiple files.

Development Environment Enhancements:

  • .vscode/launch.json: Added a debug configuration for running the verity.py script with integrated terminal support and environment setup.
  • .vscode/settings.json: Configured VS Code to use the Pylance language server, enabled pytest for testing, and integrated Ruff for linting and import organization.
  • .vscode/tasks.json: Added tasks for running tests, linting with Ruff, pre-commit checks, and syncing the environment using uv.

Dependency and Tooling Updates:

  • pyproject.toml: Added dependencies for python-lsp-ruff and python-lsp-server. Configured Ruff for linting, import organization, and defined line length and target Python version. [1] [2]

Codebase Improvements:

  • Organized imports across multiple files (src/config.py, src/data_handler.py, src/front/home.py, src/tests/test_config.py, src/verity.py) to improve readability and follow best practices. [1] [2] [3] [4] [5]

@AtomicAlexD AtomicAlexD requested a review from Copilot May 29, 2025 20:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the developer experience by adding VS Code configurations, updating linting/language‐server dependencies, and enforcing consistent import ordering.

  • Added .vscode debug, task, and editor settings for testing, linting, and formatting.
  • Updated pyproject.toml with Python LSP and Ruff configurations plus new dependencies.
  • Reordered imports in multiple modules to follow PEP 8 grouping.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/verity.py Reordered standard‐lib imports for consistency
src/tests/test_config.py Grouped imports in the preferred stdlib–third-party–local order
src/front/home.py Consolidated and alphabetized Flask imports
src/data_handler.py Swapped sqlite3 and logging to match alphabetical ordering
src/config.py Adjusted blank lines to separate stdlib and third-party imports
pyproject.toml Added python-lsp-ruff, python-lsp-server, and related configs
.vscode/tasks.json Introduced tasks for running tests, lint checks, and pre-commit
.vscode/settings.json Configured Pylance, Ruff formatting, import organization, and paths
.vscode/launch.json Added launch configuration for debugging verity.py
Comments suppressed due to low confidence (1)

.vscode/settings.json:13

  • Two JSON keys are placed on the same line, making this invalid JSON. Split them onto separate lines and ensure proper comma placement.
"editor.formatOnSaveMode": "file",    "python.analysis.extraPaths": [

Alex Dimmock and others added 2 commits May 29, 2025 21:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Owner

@Jake-Pullen Jake-Pullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like and agree with these changes, could you please git ignore the .vscode directory though

@Jake-Pullen
Copy link
Owner

I like and agree with these changes, could you please git ignore the .vscode directory though

I've done some digging and we can disregard the git ignore stuff for now and open up a conversation of how we want this to look on the future

Jake-Pullen
Jake-Pullen previously approved these changes May 30, 2025
Jake-Pullen
Jake-Pullen previously approved these changes May 30, 2025
@AtomicAlexD AtomicAlexD requested a review from Copilot May 30, 2025 20:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the development environment with VS Code configurations, adds Python LSP and Ruff support, and tidies import organization across the codebase.

  • Introduce VS Code tasks, settings, and launch configs for testing, linting, debugging, and environment sync.
  • Update pyproject.toml to include python-lsp-ruff and python-lsp-server plus related tool settings.
  • Re-organize imports in multiple modules for consistent sorting and grouping.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/verity.py Reordered and grouped standard‐library imports
src/tests/test_config.py Organized os, third‐party, and local imports
src/front/home.py Combined and alphabetized Flask imports
src/data_handler.py Sorted stdlib imports
src/config.py Separated stdlib and third‐party imports with a blank line
pyproject.toml Added LSP and Ruff dependencies and tool configurations
.vscode/tasks.json Defined tasks for running tests, linting, debugging, and syncing
.vscode/settings.json Configured Pylance, pytest, and Ruff formatting on save
.vscode/launch.json Added a debug configuration for verity.py
Comments suppressed due to low confidence (2)

.vscode/tasks.json:66

  • [nitpick] The task label has a trailing space which could cause confusion when referencing tasks. Remove the extra space at the end of "UV Sync ".
"label": "UV Sync ",

.vscode/settings.json:13

  • This line contains two JSON properties on the same line, which makes the settings file invalid JSON. Split them into separate lines so each key/value pair is on its own line.
"editor.formatOnSaveMode": "file",    "python.analysis.extraPaths": [

@AtomicAlexD AtomicAlexD merged commit b6d66b9 into stage May 30, 2025
1 check passed
@AtomicAlexD AtomicAlexD deleted the feature/adding_pylsp branch May 30, 2025 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants